package com.kfgj.hkp.entity.house;

import com.kfgj.hkp.common.dic.DictionaryStorage;
import com.kfgj.hkp.common.BaseEntity;
import com.kfgj.hkp.common.enums.SexType;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description 房源登记客户(独立于客户)
 * @Auth xpp
 * @Date 2019/11/18
 * @Version 1.0
 */
public class LinkCustomerEntity extends BaseEntity {

    /**
     * 客户编号
     */
    protected String linkcusCode;
    /**
     * 房源编码
     */
    protected String houseCode;
    /**
     * 客户姓名
     */
    protected String cusName;
    /**
     * 客户手机号
     */
    protected String cusPhone;
    /**
     * 客户固定电话
     */
    protected String fixedPhone;
    /**
     * 公司名字
     */
    protected String companyName;
    /**
     * 产品信息
     */
    protected String products;
    /**
     * 需求面积
     */
    protected BigDecimal needAcreage;
    /**
     * 要求价格
     */
    protected BigDecimal needPrice;
    /**
     * 价格单位
     */
    protected String priceUnit;
    /**
     * 合同结束时间
     */
    protected Date contractEndTime;
    /**
     * 库房类型分类：普通仓库厂房，冷链仓库、高台仓库、危险品仓库
     *
     */
    protected String expireAccept;
    /**
     * 需求描述
     */
    protected String description;

    /**
     * 微信同号
     */
    protected Boolean weChatSame;

    /**
     * 客户性别
     */
    protected String cusSex;
    /**
     * 客户性别名
     */
    protected String cusSexName;

    //---------------------------------------


    public String getLinkcusCode() {
        return linkcusCode;
    }

    public void setLinkcusCode(String linkcusCode) {
        this.linkcusCode = linkcusCode;
    }

    public String getHouseCode() {
        return houseCode;
    }

    public void setHouseCode(String houseCode) {
        this.houseCode = houseCode;
    }

    public String getCusName() {
        return cusName;
    }

    public void setCusName(String cusName) {
        this.cusName = cusName;
    }

    public String getCusPhone() {
        return cusPhone;
    }

    public void setCusPhone(String cusPhone) {
        this.cusPhone = cusPhone;
    }

    public String getFixedPhone() {
        return fixedPhone;
    }

    public void setFixedPhone(String fixedPhone) {
        this.fixedPhone = fixedPhone;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getProducts() {
        return products;
    }

    public void setProducts(String products) {
        this.products = products;
    }

    public BigDecimal getNeedAcreage() {
        return needAcreage;
    }

    public void setNeedAcreage(BigDecimal needAcreage) {
        this.needAcreage = needAcreage;
    }

    public BigDecimal getNeedPrice() {
        return needPrice;
    }

    public void setNeedPrice(BigDecimal needPrice) {
        this.needPrice = needPrice;
    }

    public String getPriceUnit() {
        return priceUnit;
    }

    public void setPriceUnit(String priceUnit) {
        this.priceUnit = priceUnit;
    }

    public Date getContractEndTime() {
        return contractEndTime;
    }

    public void setContractEndTime(Date contractEndTime) {
        this.contractEndTime = contractEndTime;
    }

    public String getExpireAccept() {
        return expireAccept;
    }

    public void setExpireAccept(String expireAccept) {
        this.expireAccept = expireAccept;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Boolean getWeChatSame() {
        return weChatSame;
    }

    public void setWeChatSame(Boolean weChatSame) {


        this.weChatSame = weChatSame;
    }

    public String getCusSex () {
        return cusSex;
    }

    public void setCusSex (String cusSex) {
        this.cusSex = cusSex;
    }

    public String getCusSexName () {

        if (cusSexName == null && cusSex != null) {
            cusSexName = DictionaryStorage.get (SexType.getKey (), cusSex).getName ();
        }

        return cusSexName;
    }

    public void setCusSexName (String cusSexName) {
        this.cusSexName = cusSexName;
    }
}
